const routes = [
  {
    path: '',
    redirect: '/home'
  },
  {
    path: '/',
    component: () => import('@/views/IndexView.vue'),
    children: [
      {
        path: '/home',
        name: 'home',
        component: () => import('@/components/HelloWorld.vue')
      },
      {
        path: '/about',
        name: 'about',
        component: () => import('@/views/AboutView.vue')
      }
    ]
  },
  {
    path: '/login',
    component: () => import('@/views/LoginView.vue')
  }
]

export default routes
